import React from 'react';
import { connect, useModel } from  'umi'

const index = (props) => {
    const {data} = useModel('user')
    console.log('redux数据', props)
    console.log('使用插件', data)
    return (
        <div>
            my
        </div>
    );
}

const mapStateToProps = ({users, loading}) => {
    return {
        users,
        userListLoading: loading.models.users
    }
}
const mapDispatchToProps = (dispatch) => {
    return {
        dispatch
    }
}
export default connect(mapStateToProps, mapDispatchToProps)(index);
